﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using UtilZ.Dotnet.Ex.ZLog;

namespace UtilZ.Dotnet.Ex.Base
{
    /// <summary>
    /// 线程参数
    /// </summary>
    public sealed class ThreadExPara : CancellationTokenEx
    {
        /// <summary>
        /// 参数
        /// </summary>
        public object Para { get; private set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="token">CancellationToken</param>
        /// <param name="para">参数</param>
        internal ThreadExPara(CancellationToken token, object para)
            : base(token)
        {
            this.Para = para;
        }
    }
}
